#include <stdlib.h>

#define DIFF ('1' - '*')


int main ()
{
	int c;

	while ((c = getchar()) > 0)
	{
		if (c == '\n')
			putchar(c);
		else
			putchar(c - DIFF);
	}

	return 0;
}